<template>
    <el-carousel trigger="click" height="350px">
        <el-carousel-item v-for="(item, index) in carouselList" :key="index">
            <img :src="item.img" alt="轮播图" />
        </el-carousel-item>
    </el-carousel>
</template>
<script setup lang="ts">
import { ref } from 'vue';

let carouselList = ref([
    {
        img: "src/assets/images/web-banner-1.png",
    },
    {
        img: "src/assets/images/web-banner-1.png",
    },
    {
        img: "src/assets/images/web-banner-1.png",
    },
    {
        img: "src/assets/images/web-banner-1.png",
    }]);
</script>

<style scoped lang="scss">
img {
    width: 100%;
    height: 350px;
}
</style>